package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.pojo.Dish;
import com.itheima.pojo.DishDto;

import java.util.List;

public interface DishService extends IService<Dish> {
    Page pageSelect(Integer page, Integer pageSize, String name);

    void saveDish(DishDto dishDto);

    DishDto getDishDto(Long id);

    void updateDishDto(DishDto dishDto);

    void updateStatus(Integer status, List<Long> ids);

    R deleteByIds(List<Long> ids);

    List<DishDto> selectDishByCategoryId(Long categoryId, String name);
}
